# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=libgnomekbd
pkgver=3.26.1
pkgrel=1
pkgdesc="GNOME keyboard library"
url="https://www.gnome.org/"
arch="all"
license="GPL-2.0-or-later"
depends="desktop-file-utils"
depends_dev="gtk+3.0-dev libxklavier-dev libxml2-dev gobject-introspection-dev
	libxcursor-dev libxcomposite-dev libxi-dev libxau-dev libxdmcp-dev libxext-dev
	libxcb-dev"
makedepends="$depends_dev intltool"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static \
		--enable-tests \
		--enable-introspection
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="8e83522f4d96001f9635278a001e0208d6d37e74b19a8c1702ec6de651036ad37a03385e66adbd3bae01d845a9a6181bb76f45bffec31eac98d600b49ab4360c  libgnomekbd-3.26.1.tar.xz"
